/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_1006()
{
    int n,hundreds,tens,ones;
    scanf("%d",&n);
    hundreds=n/100;
    for (int i=0;i<hundreds ;++i )
    {
        printf("B");
    }
    tens=n%100/10;
    for (int i=0;i<tens ;++i )
    {
        printf("S");
    }
    ones=n%10;
    for (int i=1;i<=ones ;++i )
    {
        printf("%d",i);
    }
	return 0;
}
